﻿using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Inputs
{
    /// <summary>
    /// 计量单位参数模型
    /// </summary>
    [DataContract]
    public struct MeasureUnitParam
    {
        /// <summary>
        /// 计量单位编号
        /// </summary>
        [DataMember]
        public string unitNo;

        /// <summary>
        /// 计量单位名称
        /// </summary>
        [DataMember]
        public string unitName;

        /// <summary>
        /// 是否是主计量单位
        /// </summary>
        [DataMember]
        public bool isMaster;

        /// <summary>
        /// 主计量单位转换系数
        /// </summary>
        /// <remarks>
        /// 当前计量单位 * 主计量单位转换系数 = 主计量单位
        /// </remarks>
        [DataMember]
        public decimal? masterCoefficient;

        /// <summary>
        /// 排序
        /// </summary>
        [DataMember]
        public int sort;

        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string description;
    }
}
